<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/tw-state.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tw-state.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tw-state_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ross_8h.html">ross.h</a>&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="lz4_8h.html">lz4.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Make a snapshot of the LP state and store it into the delta buffer</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="tw-state_8c.html#af858e4fa1df4ce272f74ad0335f9a427">    9</a></span>&#160;<a class="code" href="tw-state_8c.html#af858e4fa1df4ce272f74ad0335f9a427">tw_snapshot</a>(<a class="code" href="structtw__lp.html">tw_lp</a> *lp, <span class="keywordtype">size_t</span> state_sz)</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;{</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    assert(lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0] &amp;&amp; <span class="stringliteral">&quot;increase --buddy-size argument!&quot;</span>);</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    memcpy(lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0], lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>, state_sz);</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;}</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Create the delta from the current state and the snapshot.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * Compress it.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * @return The size of the compressed data placed in delta_buffer[1].</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keywordtype">long</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="tw-state_8c.html#a23a06d48ada7a6f453ea34d6175516fd">   21</a></span>&#160;<a class="code" href="tw-state_8c.html#a23a06d48ada7a6f453ea34d6175516fd">tw_snapshot_delta</a>(<a class="code" href="structtw__lp.html">tw_lp</a> *lp, <span class="keywordtype">size_t</span> state_sz)</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordtype">int</span> ret_size = 0;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *current_state = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *snapshot = lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0];</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordtype">void</span> *scratch = lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[2];</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    for (i = 0; i &lt; state_sz; i++) {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        snapshot[i] = current_state[i] - snapshot[i];</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    }</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    ret_size = <a class="code" href="lz4_8c.html#a19a6258c0092d5b3255a41d7566248d7">LZ4_compress_fast_extState</a>(scratch, (<span class="keywordtype">char</span>*)snapshot, (<span class="keywordtype">char</span>*)lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[1], state_sz, <a class="code" href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a>, <a class="code" href="ross-extern_8h.html#a44046c72a5bace26ffd7c10ac06ba5f3">g_tw_lz4_knob</a>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.<a class="code" href="structtw__statistics.html#a43c6da6365aebc030d939dc378daf154">s_lz4</a> += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">if</span> (ret_size &lt; 0) {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LZ4_compress error&quot;</span>);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#accbcced0daa7dca4b2bfec444fa6d975">delta_buddy</a> = <a class="code" href="buddy_8c.html#aa9dd0e2ab55c7090670a556e026f515c">buddy_alloc</a>(ret_size);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.<a class="code" href="structtw__statistics.html#a11793b1e0f358ce83e0f0e7d858f14c5">s_buddy</a> += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    assert(lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#accbcced0daa7dca4b2bfec444fa6d975">delta_buddy</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#adda0df93eb412b35295cbc6eac4a3208">delta_size</a> = ret_size;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    memcpy(lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#accbcced0daa7dca4b2bfec444fa6d975">delta_buddy</a>, lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[1], ret_size);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordflow">return</span> ret_size;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;}</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment"> * Restore the state of lp to the (decompressed) data held in buffer</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="tw-state_8c.html#acd673114465dd29b555cc518faaa66bc">   55</a></span>&#160;<a class="code" href="tw-state_8c.html#acd673114465dd29b555cc518faaa66bc">tw_snapshot_restore</a>(<a class="code" href="structtw__lp.html">tw_lp</a> *lp, <span class="keywordtype">size_t</span> state_sz)</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *snapshot = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">cur_event</a>-&gt;<a class="code" href="structtw__event.html#accbcced0daa7dca4b2bfec444fa6d975">delta_buddy</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *current_state = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)lp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">int</span> ret = <a class="code" href="lz4_8c.html#a1b6fd5873bbe60abc9a6bf7b3e75056a">LZ4_decompress_fast</a>((<span class="keywordtype">char</span> *)snapshot, (<span class="keywordtype">char</span>*)lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0], state_sz);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a>-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.<a class="code" href="structtw__statistics.html#a43c6da6365aebc030d939dc378daf154">s_lz4</a> += (<a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a>(<a class="code" href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a>, <span class="stringliteral">&quot;LZ4_decompress_fast error&quot;</span>);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    snapshot = lp-&gt;<a class="code" href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">pe</a>-&gt;<a class="code" href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">delta_buffer</a>[0];</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; state_sz; i++) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        current_state[i] = current_state[i] - snapshot[i];</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;}</div>
<div class="ttc" id="ross-extern_8h_html_afffdf140f2c492f61546ad783833f127"><div class="ttname"><a href="ross-extern_8h.html#afffdf140f2c492f61546ad783833f127">TW_LOC</a></div><div class="ttdeci">#define TW_LOC</div><div class="ttdef"><b>Definition:</b> <a href="ross-extern_8h_source.html#l00164">ross-extern.h:164</a></div></div>
<div class="ttc" id="structtw__event_html_accbcced0daa7dca4b2bfec444fa6d975"><div class="ttname"><a href="structtw__event.html#accbcced0daa7dca4b2bfec444fa6d975">tw_event::delta_buddy</a></div><div class="ttdeci">void * delta_buddy</div><div class="ttdoc">Delta memory from buddy allocator. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00275">ross-types.h:275</a></div></div>
<div class="ttc" id="lz4_8c_html_a1b6fd5873bbe60abc9a6bf7b3e75056a"><div class="ttname"><a href="lz4_8c.html#a1b6fd5873bbe60abc9a6bf7b3e75056a">LZ4_decompress_fast</a></div><div class="ttdeci">int LZ4_decompress_fast(const char *source, char *dest, int originalSize)</div><div class="ttdef"><b>Definition:</b> <a href="lz4_8c_source.html#l01298">lz4.c:1298</a></div></div>
<div class="ttc" id="structtw__event_html_adda0df93eb412b35295cbc6eac4a3208"><div class="ttname"><a href="structtw__event.html#adda0df93eb412b35295cbc6eac4a3208">tw_event::delta_size</a></div><div class="ttdeci">size_t delta_size</div><div class="ttdoc">Size of delta. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00276">ross-types.h:276</a></div></div>
<div class="ttc" id="tw-state_8c_html_acd673114465dd29b555cc518faaa66bc"><div class="ttname"><a href="tw-state_8c.html#acd673114465dd29b555cc518faaa66bc">tw_snapshot_restore</a></div><div class="ttdeci">void tw_snapshot_restore(tw_lp *lp, size_t state_sz)</div><div class="ttdef"><b>Definition:</b> <a href="tw-state_8c_source.html#l00055">tw-state.c:55</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a49ed2388aaae26e43280b7909c834aaa"><div class="ttname"><a href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa">tw_error</a></div><div class="ttdeci">void tw_error(const char *file, int line, const char *fmt,...) NORETURN</div><div class="ttdef"><b>Definition:</b> <a href="tw-util_8c_source.html#l00074">tw-util.c:74</a></div></div>
<div class="ttc" id="structtw__pe_html_ac1d26b7bfd058cc55cbf5ee201edb83c"><div class="ttname"><a href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">tw_pe::stats</a></div><div class="ttdeci">tw_statistics stats</div><div class="ttdoc">per PE counters </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00415">ross-types.h:415</a></div></div>
<div class="ttc" id="structtw__pe_html_ad238a4127fa0eaee43605bcbc47bd73a"><div class="ttname"><a href="structtw__pe.html#ad238a4127fa0eaee43605bcbc47bd73a">tw_pe::delta_buffer</a></div><div class="ttdeci">unsigned char * delta_buffer[3]</div><div class="ttdoc">buffers used for delta encoding </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00388">ross-types.h:388</a></div></div>
<div class="ttc" id="aarch64_8h_html_a450cf25fa5291629087ca4198de55757"><div class="ttname"><a href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a></div><div class="ttdeci">static tw_clock tw_clock_read(void)</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00006">aarch64.h:6</a></div></div>
<div class="ttc" id="structtw__statistics_html_a43c6da6365aebc030d939dc378daf154"><div class="ttname"><a href="structtw__statistics.html#a43c6da6365aebc030d939dc378daf154">tw_statistics::s_lz4</a></div><div class="ttdeci">tw_clock s_lz4</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00150">ross-types.h:150</a></div></div>
<div class="ttc" id="buddy_8c_html_aa9dd0e2ab55c7090670a556e026f515c"><div class="ttname"><a href="buddy_8c.html#aa9dd0e2ab55c7090670a556e026f515c">buddy_alloc</a></div><div class="ttdeci">void * buddy_alloc(unsigned size)</div><div class="ttdef"><b>Definition:</b> <a href="buddy_8c_source.html#l00234">buddy.c:234</a></div></div>
<div class="ttc" id="tw-state_8c_html_a23a06d48ada7a6f453ea34d6175516fd"><div class="ttname"><a href="tw-state_8c.html#a23a06d48ada7a6f453ea34d6175516fd">tw_snapshot_delta</a></div><div class="ttdeci">long tw_snapshot_delta(tw_lp *lp, size_t state_sz)</div><div class="ttdef"><b>Definition:</b> <a href="tw-state_8c_source.html#l00021">tw-state.c:21</a></div></div>
<div class="ttc" id="lz4_8c_html_a19a6258c0092d5b3255a41d7566248d7"><div class="ttname"><a href="lz4_8c.html#a19a6258c0092d5b3255a41d7566248d7">LZ4_compress_fast_extState</a></div><div class="ttdeci">int LZ4_compress_fast_extState(void *state, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)</div><div class="ttdef"><b>Definition:</b> <a href="lz4_8c_source.html#l00657">lz4.c:657</a></div></div>
<div class="ttc" id="ross-extern_8h_html_acf6004787509f060f92d0edf8c2a4467"><div class="ttname"><a href="ross-extern_8h.html#acf6004787509f060f92d0edf8c2a4467">g_tw_delta_sz</a></div><div class="ttdeci">size_t g_tw_delta_sz</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00034">ross-global.c:34</a></div></div>
<div class="ttc" id="lz4_8h_html"><div class="ttname"><a href="lz4_8h.html">lz4.h</a></div></div>
<div class="ttc" id="tw-state_8c_html_af858e4fa1df4ce272f74ad0335f9a427"><div class="ttname"><a href="tw-state_8c.html#af858e4fa1df4ce272f74ad0335f9a427">tw_snapshot</a></div><div class="ttdeci">void tw_snapshot(tw_lp *lp, size_t state_sz)</div><div class="ttdef"><b>Definition:</b> <a href="tw-state_8c_source.html#l00009">tw-state.c:9</a></div></div>
<div class="ttc" id="structtw__statistics_html_a11793b1e0f358ce83e0f0e7d858f14c5"><div class="ttname"><a href="structtw__statistics.html#a11793b1e0f358ce83e0f0e7d858f14c5">tw_statistics::s_buddy</a></div><div class="ttdeci">tw_clock s_buddy</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00149">ross-types.h:149</a></div></div>
<div class="ttc" id="structtw__pe_html_aa172b398c08f6cb989cf2449adb06a12"><div class="ttname"><a href="structtw__pe.html#aa172b398c08f6cb989cf2449adb06a12">tw_pe::cur_event</a></div><div class="ttdeci">tw_event * cur_event</div><div class="ttdoc">Current event being processed. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00385">ross-types.h:385</a></div></div>
<div class="ttc" id="ross_8h_html"><div class="ttname"><a href="ross_8h.html">ross.h</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a2f67789cc425e7d839fa4b983f5b8505"><div class="ttname"><a href="ross-extern_8h.html#a2f67789cc425e7d839fa4b983f5b8505">g_tw_pe</a></div><div class="ttdeci">tw_pe * g_tw_pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00075">ross-global.c:75</a></div></div>
<div class="ttc" id="structtw__lp_html_a9fd32632e5c45a00faf16a6fd0814640"><div class="ttname"><a href="structtw__lp.html#a9fd32632e5c45a00faf16a6fd0814640">tw_lp::pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00308">ross-types.h:308</a></div></div>
<div class="ttc" id="aarch64_8h_html_abcd6b97b84bebf1f961f85cd24b56c60"><div class="ttname"><a href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a></div><div class="ttdeci">uint64_t tw_clock</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00004">aarch64.h:4</a></div></div>
<div class="ttc" id="structtw__lp_html_a34fb8e673f23705156b2473503e8a2d5"><div class="ttname"><a href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">tw_lp::cur_state</a></div><div class="ttdeci">void * cur_state</div><div class="ttdoc">Current application LP data. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00315">ross-types.h:315</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a44046c72a5bace26ffd7c10ac06ba5f3"><div class="ttname"><a href="ross-extern_8h.html#a44046c72a5bace26ffd7c10ac06ba5f3">g_tw_lz4_knob</a></div><div class="ttdeci">unsigned int g_tw_lz4_knob</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00041">ross-global.c:41</a></div></div>
<div class="ttc" id="structtw__lp_html"><div class="ttname"><a href="structtw__lp.html">tw_lp</a></div><div class="ttdoc">LP State Structure. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00304">ross-types.h:304</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
